<?php
/**
 * Railed
 * @package railed
 * @author Rob Frawley <robfrawley@inserrat.com>
 * @license GNU Public License v2
 * @version $Id: ControllerDefault.php 2 2007-02-28 07:48:04Z robfrawley $
 */

class ControllerDefault extends ControllerAbstract {
  /**
   * default action
   * @return void
   */
  public function actionDefaul()
  {
    $Form = new Form($this->_Router, 'post');
    $Form->attach(new Form_Fieldset('testfieldset', "Test Fieldset"));
    $Form->testfieldset->attach(new Form_Input());
    $Form->testfieldset->attach(new Form_InputSubmit());
    if($Form->submitted() !== true) {
      $this->_Template->form = $Form->get();
    } else {
      $this->_Template->form = 'Form submitted!';
    }
    return;
  }
}
?>
